<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>COMMONS-NET: commonsNet.ftp.MLSxEntryParser类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">COMMONS-NET
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classcommonsNet_1_1ftp_1_1MLSxEntryParser.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcommonsNet_1_1ftp_1_1MLSxEntryParser-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">commonsNet.ftp.MLSxEntryParser类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>用于处理MSLT和MLSD响应的解析器类。参见RFC 3659。  
 <a href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html#details">更多...</a></p>
<div class="dynheader">
类 commonsNet.ftp.MLSxEntryParser 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcommonsNet_1_1ftp_1_1MLSxEntryParser.png" usemap="#commonsNet.ftp.MLSxEntryParser_map" alt=""/>
  <map id="commonsNet.ftp.MLSxEntryParser_map" name="commonsNet.ftp.MLSxEntryParser_map">
<area href="classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl.html" title="FTPFileEntryParser 的实现类，包含 FTPFileEntryParser 接口的默认功能。" alt="commonsNet.ftp.FTPFileEntryParserImpl" shape="rect" coords="0,56,239,80"/>
<area href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html" title="FTP文件条目解析器。" alt="commonsNet.ftp.FTPFileEntryParser" shape="rect" coords="0,0,239,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a8ad001a5186838e6d23d01bae59a2119"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html#a8ad001a5186838e6d23d01bae59a2119">getInstance</a> ()</td></tr>
<tr class="memdesc:a8ad001a5186838e6d23d01bae59a2119"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取 MLSxEntryParser 的单例实例。  <br /></td></tr>
<tr class="separator:a8ad001a5186838e6d23d01bae59a2119"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39493311636b2fc1884f8a7cee0e0686"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html#a39493311636b2fc1884f8a7cee0e0686">parseEntry</a> (entry: String)</td></tr>
<tr class="memdesc:a39493311636b2fc1884f8a7cee0e0686"><td class="mdescLeft">&#160;</td><td class="mdescRight">解析MSLT和MSLD响应内容，并将其转换为 <code><a class="el" href="">FTPFile</a></code> 实例。如果相应内容不描述文件或格式错误，则返回 None 。  <br /></td></tr>
<tr class="separator:a39493311636b2fc1884f8a7cee0e0686"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac42d59fe207710c625673e8330ad2f21"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html#ac42d59fe207710c625673e8330ad2f21">parseGMTDateTime</a> (timestamp: String): ?DateTime</td></tr>
<tr class="memdesc:ac42d59fe207710c625673e8330ad2f21"><td class="mdescLeft">&#160;</td><td class="mdescRight">解析形如 yyyyMMddHHmmss[.S] 的 GMT 时间戳。  <br /></td></tr>
<tr class="separator:ac42d59fe207710c625673e8330ad2f21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cccfc6e09adf4355bb76f6da0489749"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html#a0cccfc6e09adf4355bb76f6da0489749">parseFTPEntry</a> (entry: String): ?<a class="el" href="classcommonsNet_1_1ftp_1_1FTPFile.html">FTPFile</a></td></tr>
<tr class="memdesc:a0cccfc6e09adf4355bb76f6da0489749"><td class="mdescLeft">&#160;</td><td class="mdescRight">解析MSLT和MSLD响应内容，并将其转换为可用格式，形式为 <code><a class="el" href="">FTPFile</a></code> 实例。如果相应内容不描述文件或格式错误，则返回None，否则返回描述内容对应的 <code><a class="el" href="">FTPFile</a></code> 实例。  <br /></td></tr>
<tr class="separator:a0cccfc6e09adf4355bb76f6da0489749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl.html">commonsNet.ftp.FTPFileEntryParserImpl</a></td></tr>
<tr class="memitem:a31ee5c6b892d7d4c0d7f59a0affc8855 inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="memItemLeft" align="right" valign="top">public open override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl.html#a31ee5c6b892d7d4c0d7f59a0affc8855">preParse</a> (original: LinkedList&lt;String&gt;): LinkedList&lt;String&gt;</td></tr>
<tr class="memdesc:a31ee5c6b892d7d4c0d7f59a0affc8855 inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="mdescLeft">&#160;</td><td class="mdescRight">为接口的实现者（如 VMSVersioningFTPEntryParser ，或其他实现）提供钩子。  <br /></td></tr>
<tr class="separator:a31ee5c6b892d7d4c0d7f59a0affc8855 inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b57440d6f60396d5bcc440a397e30fc inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="memItemLeft" align="right" valign="top">public open override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl.html#a6b57440d6f60396d5bcc440a397e30fc">readNextEntry</a> (reader: StringReader&lt;InputStream&gt;): ?String</td></tr>
<tr class="memdesc:a6b57440d6f60396d5bcc440a397e30fc inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="mdescLeft">&#160;</td><td class="mdescRight">从提供的对象中读取下一个条目内容，直到遇到条目的分隔符。  <br /></td></tr>
<tr class="separator:a6b57440d6f60396d5bcc440a397e30fc inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a850e0cbf482a483185a931ce4bef5df4"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html#a850e0cbf482a483185a931ce4bef5df4">parseFTPEntry</a> (listEntry: String): ?<a class="el" href="classcommonsNet_1_1ftp_1_1FTPFile.html">FTPFile</a></td></tr>
<tr class="memdesc:a850e0cbf482a483185a931ce4bef5df4"><td class="mdescLeft">&#160;</td><td class="mdescRight">解析FTP服务器文件列表的一行，并将其转换为 FTPFile 实例形式。  <br /></td></tr>
<tr class="separator:a850e0cbf482a483185a931ce4bef5df4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af13d4e946a324b2aae498a9072948b40"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html#af13d4e946a324b2aae498a9072948b40">preParse</a> (original: LinkedList&lt;String&gt;): LinkedList&lt;String&gt;</td></tr>
<tr class="memdesc:af13d4e946a324b2aae498a9072948b40"><td class="mdescLeft">&#160;</td><td class="mdescRight">为接口的实现者（如 VMSVersioningFTPEntryParser ，或其他实现）提供钩子。  <br /></td></tr>
<tr class="separator:af13d4e946a324b2aae498a9072948b40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98cb0a6f3b1ae6cf9d29e87fbf8b2ec7"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html#a98cb0a6f3b1ae6cf9d29e87fbf8b2ec7">readNextEntry</a> (reader: StringReader&lt;InputStream&gt;): ?String</td></tr>
<tr class="memdesc:a98cb0a6f3b1ae6cf9d29e87fbf8b2ec7"><td class="mdescLeft">&#160;</td><td class="mdescRight">从提供的对象中读取下一个条目内容，直到遇到条目的分隔符。  <br /></td></tr>
<tr class="separator:a98cb0a6f3b1ae6cf9d29e87fbf8b2ec7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a883a070a5bea46a26732c60a753a1706"><td class="memItemLeft" align="right" valign="top">private static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html#a883a070a5bea46a26732c60a753a1706">typeToInt</a> (t: String): Int64</td></tr>
<tr class="memdesc:a883a070a5bea46a26732c60a753a1706"><td class="mdescLeft">&#160;</td><td class="mdescRight">将文件类型转换为对应的整数常量。  <br /></td></tr>
<tr class="separator:a883a070a5bea46a26732c60a753a1706"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa899f2368d24d9bee824743dad17a23d"><td class="memItemLeft" align="right" valign="top">private&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html#aa899f2368d24d9bee824743dad17a23d">init</a> ()</td></tr>
<tr class="memdesc:aa899f2368d24d9bee824743dad17a23d"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个默认的 MLSxEntryParser 实例。可以使用<code><a class="el" href="">getInstance()</a></code>代替。  <br /></td></tr>
<tr class="separator:aa899f2368d24d9bee824743dad17a23d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36d50d7a1a94f44c84854503e005b65f"><td class="memItemLeft" align="right" valign="top">private func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html#a36d50d7a1a94f44c84854503e005b65f">doUnixPerms</a> (file: <a class="el" href="classcommonsNet_1_1ftp_1_1FTPFile.html">FTPFile</a>, valueLowerCase: String): Unit</td></tr>
<tr class="memdesc:a36d50d7a1a94f44c84854503e005b65f"><td class="mdescLeft">&#160;</td><td class="mdescRight">解析Unix风格的文件权限，对指定FTPFile进行权限设置。  <br /></td></tr>
<tr class="separator:a36d50d7a1a94f44c84854503e005b65f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:aff3bc65943f4e75dee7162089d46f3b4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html#aff3bc65943f4e75dee7162089d46f3b4">static let INSTANCE</a> = <a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html">MLSxEntryParser</a>()</td></tr>
<tr class="memdesc:aff3bc65943f4e75dee7162089d46f3b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">所有类共享的 MLSxEntryParser 实例。  <br /></td></tr>
<tr class="separator:aff3bc65943f4e75dee7162089d46f3b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fd694ea507b8950d4d5cf2162e1a19b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html#a5fd694ea507b8950d4d5cf2162e1a19b">static let UNIX_GROUPS</a> : Array&lt;Int64&gt; = [</td></tr>
<tr class="memdesc:a5fd694ea507b8950d4d5cf2162e1a19b"><td class="mdescLeft">&#160;</td><td class="mdescRight">定义一个数组，用于存储 UNIX 权限组的顺序。  <br /></td></tr>
<tr class="separator:a5fd694ea507b8950d4d5cf2162e1a19b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa99663dc1645f3dc892e966d26c948b9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html#aa99663dc1645f3dc892e966d26c948b9">static let UNIX_PERMS</a> : Array&lt;Array&lt;Int64&gt;&gt; = [</td></tr>
<tr class="memdesc:aa99663dc1645f3dc892e966d26c948b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">定义一个二维数组，用于存储权限位，并且用八进制数表示。  <br /></td></tr>
<tr class="separator:aa99663dc1645f3dc892e966d26c948b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>用于处理MSLT和MLSD响应的解析器类。参见RFC 3659。 </p>
<p>响应内容格式如下：<br  />
 entry = [ facts ] SP pathname <br  />
 facts = 1*( fact ";" ) <br  />
 fact = factname "=" value <br  />
 factname = "Size" / "Modify" / "Create" / "Type" / "Unique" / "Perm" / "Lang" / "Media-Type" / "CharSet" / os-depend-fact / local-fact <br  />
 os-depend-fact = {IANA分配的操作系统名称} "." token <br  />
 local-fact = "X." token <br  />
 value = *SCHAR <br  />
 <br  />
 简单响应内容示例:<br  />
 UNIX.group=0;UNIX.mode=0755;UNIX.owner=0; </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="aa899f2368d24d9bee824743dad17a23d" name="aa899f2368d24d9bee824743dad17a23d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa899f2368d24d9bee824743dad17a23d">&#9670;&#160;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">private commonsNet.ftp.MLSxEntryParser.init </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>构造一个默认的 MLSxEntryParser 实例。可以使用<code><a class="el" href="">getInstance()</a></code>代替。 </p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a36d50d7a1a94f44c84854503e005b65f" name="a36d50d7a1a94f44c84854503e005b65f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36d50d7a1a94f44c84854503e005b65f">&#9670;&#160;</a></span>doUnixPerms()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">private func commonsNet.ftp.MLSxEntryParser.doUnixPerms </td>
          <td>(</td>
          <td class="paramname"><em>file</em>:&#160;</td>
          <td class="paramtype">FTPFile, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>valueLowerCase</em>:&#160;</td>
          <td class="paramtype">String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>: Unit </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>解析Unix风格的文件权限，对指定FTPFile进行权限设置。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">file</td><td>需要设置权限的FTPFile实例 </td></tr>
    <tr><td class="paramname">valueLowerCase</td><td>表示文件权限的字符串。本类中为MSLT和MLSD响应中Perm的值，但是全部转换为小写。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8ad001a5186838e6d23d01bae59a2119" name="a8ad001a5186838e6d23d01bae59a2119"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ad001a5186838e6d23d01bae59a2119">&#9670;&#160;</a></span>getInstance()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func commonsNet.ftp.MLSxEntryParser.getInstance </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取 MLSxEntryParser 的单例实例。 </p>
<dl class="section return"><dt>返回</dt><dd>MLSxEntryParser 的单例实例 </dd></dl>

</div>
</div>
<a id="a39493311636b2fc1884f8a7cee0e0686" name="a39493311636b2fc1884f8a7cee0e0686"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39493311636b2fc1884f8a7cee0e0686">&#9670;&#160;</a></span>parseEntry()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func commonsNet.ftp.MLSxEntryParser.parseEntry </td>
          <td>(</td>
          <td class="paramname"><em>entry</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>解析MSLT和MSLD响应内容，并将其转换为 <code><a class="el" href="">FTPFile</a></code> 实例。如果相应内容不描述文件或格式错误，则返回 None 。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">entry</td><td>表示 MSLT 和 MSLD 响应内容的字符串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>与响应内容对应的 FTPFile 实例 </dd></dl>

</div>
</div>
<a id="a0cccfc6e09adf4355bb76f6da0489749" name="a0cccfc6e09adf4355bb76f6da0489749"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0cccfc6e09adf4355bb76f6da0489749">&#9670;&#160;</a></span>parseFTPEntry()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.ftp.MLSxEntryParser.parseFTPEntry </td>
          <td>(</td>
          <td class="paramname"><em>entry</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: ?<a class="el" href="classcommonsNet_1_1ftp_1_1FTPFile.html">FTPFile</a> </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>解析MSLT和MSLD响应内容，并将其转换为可用格式，形式为 <code><a class="el" href="">FTPFile</a></code> 实例。如果相应内容不描述文件或格式错误，则返回None，否则返回描述内容对应的 <code><a class="el" href="">FTPFile</a></code> 实例。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">entry</td><td>表示MSLT和MSLD响应内容的字符串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>与响应内容对应的 FTPFile 实例 </dd></dl>

<p>实现了 <a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html#a850e0cbf482a483185a931ce4bef5df4">commonsNet.ftp.FTPFileEntryParser</a>.</p>

</div>
</div>
<a id="ac42d59fe207710c625673e8330ad2f21" name="ac42d59fe207710c625673e8330ad2f21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac42d59fe207710c625673e8330ad2f21">&#9670;&#160;</a></span>parseGMTDateTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func commonsNet.ftp.MLSxEntryParser.parseGMTDateTime </td>
          <td>(</td>
          <td class="paramname"><em>timestamp</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: ?DateTime </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>解析形如 yyyyMMddHHmmss[.S] 的 GMT 时间戳。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">timestamp</td><td>要解析的日期时间 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>解析后得到的 DateTime 条目，可能为 None </dd></dl>

</div>
</div>
<a id="a883a070a5bea46a26732c60a753a1706" name="a883a070a5bea46a26732c60a753a1706"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a883a070a5bea46a26732c60a753a1706">&#9670;&#160;</a></span>typeToInt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">private static func commonsNet.ftp.MLSxEntryParser.typeToInt </td>
          <td>(</td>
          <td class="paramname"><em>t</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: Int64 </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>将文件类型转换为对应的整数常量。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>表示文件类型的字符串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>文件类型对应的整数常量 </dd></dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="aff3bc65943f4e75dee7162089d46f3b4" name="aff3bc65943f4e75dee7162089d46f3b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff3bc65943f4e75dee7162089d46f3b4">&#9670;&#160;</a></span>static let INSTANCE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ftp.MLSxEntryParser.static let INSTANCE = <a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html">MLSxEntryParser</a>()</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>所有类共享的 MLSxEntryParser 实例。 </p>

</div>
</div>
<a id="a5fd694ea507b8950d4d5cf2162e1a19b" name="a5fd694ea507b8950d4d5cf2162e1a19b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5fd694ea507b8950d4d5cf2162e1a19b">&#9670;&#160;</a></span>static let UNIX_GROUPS</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ftp.MLSxEntryParser.static let UNIX_GROUPS : Array&lt;Int64&gt; = [</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>定义一个数组，用于存储 UNIX 权限组的顺序。 </p>

</div>
</div>
<a id="aa99663dc1645f3dc892e966d26c948b9" name="aa99663dc1645f3dc892e966d26c948b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa99663dc1645f3dc892e966d26c948b9">&#9670;&#160;</a></span>static let UNIX_PERMS</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ftp.MLSxEntryParser.static let UNIX_PERMS : Array&lt;Array&lt;Int64&gt;&gt; = [</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>定义一个二维数组，用于存储权限位，并且用八进制数表示。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/ftp/<a class="el" href="parser__mlsx_8cj.html">parser_mlsx.cj</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.6-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacecommonsNet.html">commonsNet</a></li><li class="navelem"><a class="el" href="namespacecommonsNet_1_1ftp.html">ftp</a></li><li class="navelem"><a class="el" href="classcommonsNet_1_1ftp_1_1MLSxEntryParser.html">MLSxEntryParser</a></li>
    <li class="footer">制作者 <img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
